package com.lungle.warmdiary.app.model.response;

import com.lungle.warmdiary.app.AppException;
import com.lungle.warmdiary.app.model.Entity;
import com.lungle.warmdiary.app.model.ListEntity;

import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

/**
 * 消息通知列表
 */
public class MessageList extends Entity implements ListEntity {

    private List<Message> data = new ArrayList<Message>();

    public static MessageList parse(InputStream inputStream) throws IOException,
            AppException {
        return null;
    }

    public List<Message> getData() {
        return data;
    }

    public void setData(List<Message> data) {
        this.data = data;
    }

    @Override
    public List<?> getList() {
        return data;
    }
}
